<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/18
 * Time: 11:27
 */
$names = ['frnak','tom','jack'];
$names[5] = 'jack2';
$names[] = 'jack3';
var_dump($names);
$a = array_push($names,['andy','lucy'],'andy');
var_dump($a);//元素的个数
var_dump($names);//因为$names使用的是引用赋值（传址）